package text_2023_09_21;

import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/21 10:14:22
 */
public class BeiJingTime {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        int month = scanner.nextInt() - 1;
        int day = scanner.nextInt();
        int hour = scanner.nextInt();
        int min = scanner.nextInt();
        int scond = scanner.nextInt();
        int day_week = scanner.nextInt();
        Calendar c = Calendar.getInstance();
        c.set(year,month,day);
        c.set(Calendar.HOUR_OF_DAY,hour);
        c.set(Calendar.MINUTE,min);
        c.set(Calendar.SECOND,scond);
        System.out.println(c);
        c.set(Calendar.HOUR,c.get(Calendar.HOUR) + 7);
        System.out.println(c);
        c.set(Calendar.HOUR,c.get(Calendar.HOUR) + 5);
        System.out.println(c);


    }
}
